-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Consistent quoting for Module['canvas']. NFC #22876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
127 or the 150 references to Module['canvas'] were already quoted. In general this is how we handle properties of the Module object that we don't want closure to minify. Once I do the same for the ctx object we can remove the closure type annotation completely from shell.js.
|
Do we want this to remain on Module? I don't remember a reason for users to access it after construction, but I might be wrong. If we just need it during construction then we could receive it from Module and then access it like |
Thats kind of my long term plan yes. |
kripken
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, this sounds good as a step then.
127 or the 150 references to Module['canvas'] were already quoted. In general this is how we handle properties of the Module object that we don't want closure to minify. Once I do the same for the ctx object we can remove the closure type annotation completely from shell.js.
This was the last property explicitly listed in the closure type annotate for the `Module` object. This means that it was previously being preserved by closure via this mechanism, but now we preserve it via the normal quoting mechanism. I've been looking at removing `ctx` and `canvas` from the `Module` object, but this change is just about consistency. See emscripten-core#22876
127 or the 150 references to Module['canvas'] were already quoted. In general this is how we handle properties of the Module object that we don't want closure to minify. Once I do the same for the ctx object we can remove the closure type annotation completely from shell.js.
This was the last property explicitly listed in the closure type annotate for the `Module` object. This means that it was previously being preserved by closure via this mechanism, but now we preserve it via the normal quoting mechanism. I've been looking at removing `ctx` and `canvas` from the `Module` object, but this change is just about consistency. See emscripten-core#22876
This was the last property explicitly listed in the closure type annotate for the `Module` object. This means that it was previously being preserved by closure via this mechanism, but now we preserve it via the normal quoting mechanism. I've been looking at removing `ctx` and `canvas` from the `Module` object, but this change is just about consistency. See #22876
127 or the 150 references to Module['canvas'] were already quoted. In general this is how we handle properties of the Module object that we don't want closure to minify. Once I do the same for the ctx object we can remove the closure type annotation completely from shell.js.